package com.luckberry.murder.service;

import com.luckberry.murder.entity.User;

import javax.servlet.http.HttpSession;
import java.util.List;

public interface UserService {

    boolean login(HttpSession session, String account, String password);

    List<User> getUsers();

    List<User> getUsersByName(String name);

    List<User> getUsersByPerm(String perm);

    User getUser(int uid);

    User getUserByAccount(String account);

    boolean addUser(User user);

    boolean deleteUser(int uid);

    boolean editUser(User user);
}
